// Just a mock data

const constantRoutes = [
  {
    path: '/login',
    component: 'views/login/index',
    hidden: true
  },
  {
    path: '/',
    component: 'layout/Layout',
    redirect: '/pagehome',
    children: [
      {
        path: 'pagehome',
        component: 'views/pagehome/index',
        name: 'PageHome',
        meta: { title: 'pagehome', icon: 'example', affix: true }
      }
    ]
  },
]

const asyncRoutes = [
  {
    path: 'external-link',
    component: 'layout/Layout',
    children: [
      {
        path: 'https://github.com/PanJiaChen/vue-element-admin',
        meta: { title: 'externalLink', icon: 'link' }
      }
    ]
  },

  { path: '*', redirect: '/404', hidden: true }
]

module.exports = {
  constantRoutes,
  asyncRoutes
}
